package org.smr.ministore.dao;


import org.apache.ibatis.annotations.Param;
import org.smr.ministore.entities.GoodsTypeOrgan;
import org.apache.ibatis.annotations.Mapper;
import org.blade.dao.base.BaseMapper;
import org.blade.dao.base.PageQueryMapper;
import org.smr.ministore.entities.vo.Assign2OrgansVO;
import org.smr.ministore.entities.vo.GoodsTypeOrganQuery;

import java.util.List;


/**
*
**/
@Mapper
public interface GoodsTypeOrganMapper extends BaseMapper<Long, GoodsTypeOrgan>,PageQueryMapper<Long,GoodsTypeOrgan> {

    /**
    * 逻辑删除
    * @param id
    *
    */
    int deleteByIdLogical(@Param("id")Long id);

    /**
     * 查询已经指派
     *
     * @param goodsTypeOrganQuery goodsTypeOrganQuery
     * @return  List<GoodsTypeOrgan>
     */
    List<GoodsTypeOrgan> queryAlreadyAssignedOrgans(@Param("query")GoodsTypeOrganQuery goodsTypeOrganQuery);


    /**
     * 查询已经商品类型己指派的组织
     *
     * @param assign2OrgansVO 所指派的组织
     * @return  List<GoodsTypeOrgan>
     */
    List<GoodsTypeOrgan> queryAssignedOrgans(@Param("query")Assign2OrgansVO assign2OrgansVO);
}